package com.roger.springcloudGreenwich.springsecurity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.roger.springcloudGreenwich.springsecurity.domain.Permission;
import com.roger.springcloudGreenwich.springsecurity.domain.Users;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by yulei on 2022/10/7.
 */
@Mapper
@Component
public interface UsersMapper extends BaseMapper<Users>{
    List<Permission> findPermissionByUsername(String username);
}
